﻿@import "@/styles/element-ui.scss";

@font-face {
  font-family: PingFang SC;
  src: url(@/assets/fonts/PingFang-Jian-ChangGuiTi-2.ttf);
}

@font-face {
  font-family: JetBrains Mono;
  src: url(@/assets/fonts/JetBrainsMono-Regular.ttf);
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed;
  border: none;
  top: 0;
  left: 0;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  /* 解决element-ui弹窗问题 */
  padding-right: 0 !important;

  .code-font, .cm-editor * {
    font-family: 'JetBrains Mono', 'PingFang SC', 'monospace' !important;
  }

  :not([class*=icon]) {
    font-family: 'PingFang SC', 'Arial', 'sans-serif';
  }

  ul, ol, li, dl, dt, dd {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #app {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
    left: 0;

    &.radius {
      border-radius: 10px;
    }

    .loading-background {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      position: absolute;
      z-index: -1;
      background-image: linear-gradient(135deg, #041d76, #0d7e7e);
    }
  }
}
